package com.lanou.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet("/register")
public class RegisterServlet extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
            IOException {
        String user = request.getParameter("user");
        String passwd = request.getParameter("passwd");

        PrintWriter writer = response.getWriter();

        writer.print("13888888888".equals(user) && "123".equals(passwd));
    }
}
